#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main()
{
int poker[13]={1,2,3,4,5,6,7,8,9,10,11,12,13};
int i,j;
for(i=13; i>1; i--) {
j = rand()%i;
int temp = poker[i-1];
poker[i-1] = poker[j];
poker[j] = temp;
}

for(i=0; i<13; i++) {
j=rand()%(13-i)+i;
int temp = poker[i];
poker[i] = poker[j];
poker[j] = temp;
}
for(i=0; i<13; i++) {
printf("%d ",poker[i]);
}
return 0;
}